import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state:{
		openid:null,
		source:'weixin',
		cityInfo:'',
		provinceInfo:'',
		scene:null,//扫码进入的场景值
	},
	mutations: {
		setOpenid(state, openid) {
			state.openid = openid
		},
		setCityAndProvince(state,city,province){
			state.cityInfo = city;
			state.provinceInfo = province;
		}
	},
	
})
export default store